<?php
if(count($item))
{
	echo image_tag(
    	'/uploads/thumb/'.$item[0]['nm_midia'],
		array(
    		'absolute' 	=>true,
    		'alt' 		=> $item[0]['ds_midia'],
    		'width'		=> 120,
    		'height'	=> 120,
			'class' => 'thumbs'
		)
	);
}
else
{
	echo image_tag(
		'noimage.gif',
		array(
    		'absolute'	=>true,
    		'alt'		=> 'produto sem imagem',
    		'width'		=> '120',
    		'height'	=> '120',
			'class' => 'thumbs'
    	)
    );
}
?>